package com.service.thirddatacenter.hpool.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.thirddatacenter.hpool.model.entity.MiningRecordEntity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 收益记录
 *
 * @date 2021-06-08 15:41:03
 */
public interface MiningRecordService extends IService<MiningRecordEntity> {

    void syncMiningRecord();

    MiningRecordEntity getLastMiningRecord(Integer accountId, String type);

    /**
     * @Description: 统计商户某天的累计收益
     * @Author: ty
     * @Date: 2021/6/22 15:34
     * @param: [accountIds, type, someday]
     * @return: java.math.BigDecimal
     **/
    BigDecimal getLastIncomeByAccountId(Integer accountId, String type);
}
